#include "stdafx.h"
#include "curl_post.h"

namespace async_curl {
	curl_post::curl_post(const std::string & url,
		const std::string & body,
		curl_cb_t && cb)
		:curl_task_impl(std::forward<curl_cb_t>(cb)) {
		curl_easy_setopt(handle_, CURLOPT_URL, url.c_str());
		curl_easy_setopt(handle_, CURLOPT_POST, 1);
		curl_easy_setopt(handle_, CURLOPT_COPYPOSTFIELDS, body.c_str());
	}

	curl_post	::~curl_post() {}
}
